import React from "react";

import Dialog from "uxcore-dialog";
import TsTjDialog from "./../sjtj/ts";
import { on } from "events";

class SSKJDialog extends React.Component {
  constructor(props) {
    super();
    this.state = {
      default: {
        visible: false,
        title: "Dialog",
        content: "<div>敬请期待</div>",
      },
    };
  }

  render() {
    const { title, width, visible, onOk, onCancel, content } = this.props;
    return (
      <Dialog
        title={title}
        width={width}
        visible={visible}
        onOk={() => {
          if (onOk) {
            onOk();
          }
        }}
        onCancel={() => {
          if (onCancel) {
            onCancel();
          }
        }}
        transitionName="slideDown"
      >
        {content || this.state.content}
      </Dialog>
    );
  }
}

export default SSKJDialog;
